import React, { Component } from 'react'
import './App.scss'
import { Header, List, Footer } from './cps'

export default class App extends Component {
  state = {
    todos: [
      {
        id: 0,
        title: '吃饭',
        completed: false
      },
      {
        id: 1,
        title: '睡觉',
        completed: false
      },
      {
        id: 2,
        title: '上号',
        completed: true
      }
    ]
  }
  render() {
    const { todos } = this.state
    return (
      <div className="container">
        <Header></Header>
        <List todos={todos}></List>
        <Footer></Footer>
      </div>
    )
  }
}
